.class public Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;
.super Landroidx/fragment/app/Fragment;
.source "FragmentMeasuresList.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentOnBackPressed;
.implements Landroid/view/ActionMode$Callback;


# instance fields
.field Acmode:Landroid/view/ActionMode;

.field private TAG_INI:Ljava/lang/String;

.field private adapt:Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;

.field private fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

.field groupAdapter:Landroid/widget/ArrayAdapter;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/widget/ArrayAdapter<",
            "Llt/noframe/gpsfarmguide/models/GroupModel;",
            ">;"
        }
    .end annotation
.end field

.field private groupId:I

.field private groups:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Llt/noframe/gpsfarmguide/models/GroupModel;",
            ">;"
        }
    .end annotation
.end field

.field private groupsSpinner:Landroid/widget/Spinner;

.field groupsSpinnerListener:Landroid/widget/AdapterView$OnItemSelectedListener;

.field private lastgroup:Llt/noframe/gpsfarmguide/models/GroupModel;

.field listItemClick:Landroid/widget/AdapterView$OnItemClickListener;

.field listItemLongClick:Landroid/widget/AdapterView$OnItemLongClickListener;

.field listSelectionClick:Landroid/widget/AdapterView$OnItemClickListener;

.field private listV:Landroid/widget/ListView;

.field private listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

.field private measureType:I

.field private measures:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Llt/noframe/gpsfarmguide/models/MeasureListModel;",
            ">;"
        }
    .end annotation
.end field

.field runtimePermissions:Llt/noframe/gpsfarmguide/utils/RuntimePermissions;

.field private scroll:I

.field private selection:Z

.field private selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

.field private typesSpinner:Landroid/widget/Spinner;

.field typesSpinnerListener:Landroid/widget/AdapterView$OnItemSelectedListener;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 77
    invoke-direct {p0}, Landroidx/fragment/app/Fragment;-><init>()V

    const-string v0, "ini"

    .line 53
    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->TAG_INI:Ljava/lang/String;

    .line 54
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measures:Ljava/util/List;

    .line 315
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$4;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$4;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listItemClick:Landroid/widget/AdapterView$OnItemClickListener;

    .line 327
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$5;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$5;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listItemLongClick:Landroid/widget/AdapterView$OnItemLongClickListener;

    .line 348
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$6;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$6;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listSelectionClick:Landroid/widget/AdapterView$OnItemClickListener;

    .line 368
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$7;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$7;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupsSpinnerListener:Landroid/widget/AdapterView$OnItemSelectedListener;

    .line 407
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$8;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$8;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->typesSpinnerListener:Landroid/widget/AdapterView$OnItemSelectedListener;

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Llt/noframe/gpsfarmguide/models/GroupModel;
    .locals 0

    .line 45
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->lastgroup:Llt/noframe/gpsfarmguide/models/GroupModel;

    return-object p0
.end method

.method static synthetic access$002(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;Llt/noframe/gpsfarmguide/models/GroupModel;)Llt/noframe/gpsfarmguide/models/GroupModel;
    .locals 0

    .line 45
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->lastgroup:Llt/noframe/gpsfarmguide/models/GroupModel;

    return-object p1
.end method

.method static synthetic access$100(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V
    .locals 0

    .line 45
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->setUpGroups()V

    return-void
.end method

.method static synthetic access$1002(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;I)I
    .locals 0

    .line 45
    iput p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupId:I

    return p1
.end method

.method static synthetic access$1100(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V
    .locals 0

    .line 45
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->createList()V

    return-void
.end method

.method static synthetic access$1200(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Landroid/widget/Spinner;
    .locals 0

    .line 45
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->typesSpinner:Landroid/widget/Spinner;

    return-object p0
.end method

.method static synthetic access$202(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;I)I
    .locals 0

    .line 45
    iput p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->scroll:I

    return p1
.end method

.method static synthetic access$300(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Llt/noframe/gpsfarmguide/analytics/FireAnalytics;
    .locals 0

    .line 45
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    return-object p0
.end method

.method static synthetic access$400(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)I
    .locals 0

    .line 45
    iget p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measureType:I

    return p0
.end method

.method static synthetic access$402(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;I)I
    .locals 0

    .line 45
    iput p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measureType:I

    return p1
.end method

.method static synthetic access$500(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Ljava/util/List;
    .locals 0

    .line 45
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measures:Ljava/util/List;

    return-object p0
.end method

.method static synthetic access$600(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;
    .locals 0

    .line 45
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    return-object p0
.end method

.method static synthetic access$700(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;I)V
    .locals 0

    .line 45
    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->setSelectioncount(I)V

    return-void
.end method

.method static synthetic access$800(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Ljava/lang/String;
    .locals 0

    .line 45
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->TAG_INI:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic access$900(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Landroid/widget/Spinner;
    .locals 0

    .line 45
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupsSpinner:Landroid/widget/Spinner;

    return-object p0
.end method

.method private createList()V
    .locals 5

    .line 187
    invoke-static {}, Llt/noframe/gpsfarmguide/database/DB;->getDB()Llt/noframe/gpsfarmguide/database/DB;

    move-result-object v0

    iget v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measureType:I

    iget v2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupId:I

    invoke-virtual {v0, v1, v2}, Llt/noframe/gpsfarmguide/database/DB;->getMeasuresForList(II)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measures:Ljava/util/List;

    .line 189
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selection:Z

    if-eqz v0, :cond_0

    .line 190
    new-instance v0, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    iget-object v2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measures:Ljava/util/List;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v3

    invoke-virtual {v3}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v3

    iget-object v4, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listV:Landroid/widget/ListView;

    invoke-direct {v0, v1, v2, v3, v4}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;-><init>(Landroid/app/Activity;Ljava/util/List;Landroid/os/Bundle;Landroid/widget/ListView;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    .line 191
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {v0, v1}, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;->setAdapter(Lse/emilsjolander/stickylistheaders/StickyListHeadersAdapter;)V

    .line 192
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listSelectionClick:Landroid/widget/AdapterView$OnItemClickListener;

    invoke-virtual {v0, v1}, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 193
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V

    goto :goto_0

    .line 195
    :cond_0
    new-instance v0, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    iget-object v2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measures:Ljava/util/List;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v3

    invoke-virtual {v3}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v3

    iget-object v4, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listV:Landroid/widget/ListView;

    invoke-direct {v0, v1, v2, v3, v4}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;-><init>(Landroid/app/Activity;Ljava/util/List;Landroid/os/Bundle;Landroid/widget/ListView;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->adapt:Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;

    .line 196
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->adapt:Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;

    invoke-virtual {v0, v1}, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;->setAdapter(Lse/emilsjolander/stickylistheaders/StickyListHeadersAdapter;)V

    .line 197
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listItemClick:Landroid/widget/AdapterView$OnItemClickListener;

    invoke-virtual {v0, v1}, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 198
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listItemLongClick:Landroid/widget/AdapterView$OnItemLongClickListener;

    invoke-virtual {v0, v1}, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V

    .line 201
    :goto_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f010023

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadLayoutAnimation(Landroid/content/Context;I)Landroid/view/animation/LayoutAnimationController;

    move-result-object v0

    .line 202
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->setLayoutAnimation(Landroid/view/animation/LayoutAnimationController;)V

    .line 204
    :try_start_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    iget v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->scroll:I

    invoke-virtual {v0, v1}, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;->setSelection(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 206
    :goto_1
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    new-instance v1, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$3;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$3;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V

    invoke-virtual {v0, v1}, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    return-void
.end method

.method private ini()V
    .locals 3

    .line 136
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f090159

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    .line 139
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    invoke-virtual {v0}, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;->getWrappedList()Landroid/widget/ListView;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listV:Landroid/widget/ListView;

    .line 140
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    const v2, 0x7f0900f8

    invoke-virtual {v1, v2}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;->setEmptyView(Landroid/view/View;)V

    .line 141
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f11015c

    .line 142
    invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const/4 v0, 0x0

    .line 143
    iput v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupId:I

    const/4 v0, 0x2

    .line 144
    iput v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measureType:I

    .line 145
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->setUpMeasureTypes()V

    .line 146
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->setUpGroups()V

    .line 148
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->validateEditGroupVisibility()V

    .line 150
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f0900f4

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$2;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public static newInstance()Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;
    .locals 1

    .line 73
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;-><init>()V

    return-object v0
.end method

.method private setSelectioncount(I)V
    .locals 3

    .line 272
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->Acmode:Landroid/view/ActionMode;

    if-eqz v0, :cond_0

    .line 273
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " "

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    const v2, 0x7f1101bc

    invoke-virtual {p1, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/view/ActionMode;->setTitle(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method private setUpGroups()V
    .locals 5

    .line 226
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f090171

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupsSpinner:Landroid/widget/Spinner;

    .line 227
    invoke-static {}, Llt/noframe/gpsfarmguide/database/DB;->getDB()Llt/noframe/gpsfarmguide/database/DB;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/database/DB;->getGroups()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groups:Ljava/util/List;

    .line 228
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groups:Ljava/util/List;

    new-instance v1, Llt/noframe/gpsfarmguide/models/GroupModel;

    const v2, 0x7f110025

    invoke-virtual {p0, v2}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-direct {v1, v3, v2}, Llt/noframe/gpsfarmguide/models/GroupModel;-><init>(ILjava/lang/String;)V

    invoke-interface {v0, v3, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 229
    new-instance v0, Landroid/widget/ArrayAdapter;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    iget-object v2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groups:Ljava/util/List;

    const v4, 0x1090008

    invoke-direct {v0, v1, v4, v2}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;ILjava/util/List;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupAdapter:Landroid/widget/ArrayAdapter;

    .line 231
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupAdapter:Landroid/widget/ArrayAdapter;

    const v1, 0x1090009

    invoke-virtual {v0, v1}, Landroid/widget/ArrayAdapter;->setDropDownViewResource(I)V

    .line 232
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupsSpinner:Landroid/widget/Spinner;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupAdapter:Landroid/widget/ArrayAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 233
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupsSpinner:Landroid/widget/Spinner;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->TAG_INI:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setTag(Ljava/lang/Object;)V

    .line 234
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupsSpinner:Landroid/widget/Spinner;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupsSpinnerListener:Landroid/widget/AdapterView$OnItemSelectedListener;

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 236
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->lastgroup:Llt/noframe/gpsfarmguide/models/GroupModel;

    if-eqz v0, :cond_1

    const/4 v0, 0x0

    .line 237
    :goto_0
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groups:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 238
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->lastgroup:Llt/noframe/gpsfarmguide/models/GroupModel;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/models/GroupModel;->getId()I

    move-result v1

    iget-object v2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groups:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Llt/noframe/gpsfarmguide/models/GroupModel;

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/models/GroupModel;->getId()I

    move-result v2

    if-ne v1, v2, :cond_0

    .line 240
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupsSpinner:Landroid/widget/Spinner;

    invoke-virtual {v1, v0}, Landroid/widget/Spinner;->setSelection(I)V

    const/4 v3, 0x1

    goto :goto_1

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    :goto_1
    if-nez v3, :cond_2

    .line 246
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupsSpinner:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Llt/noframe/gpsfarmguide/models/GroupModel;

    .line 247
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/models/GroupModel;->getId()I

    move-result v1

    iput v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupId:I

    .line 248
    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->lastgroup:Llt/noframe/gpsfarmguide/models/GroupModel;

    .line 249
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->validateEditGroupVisibility()V

    .line 250
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->createList()V

    :cond_2
    return-void
.end method

.method private setUpMeasureTypes()V
    .locals 3

    .line 259
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f090174

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->typesSpinner:Landroid/widget/Spinner;

    .line 261
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f030008

    const v2, 0x1090008

    .line 260
    invoke-static {v0, v1, v2}, Landroid/widget/ArrayAdapter;->createFromResource(Landroid/content/Context;II)Landroid/widget/ArrayAdapter;

    move-result-object v0

    const v1, 0x1090009

    .line 262
    invoke-virtual {v0, v1}, Landroid/widget/ArrayAdapter;->setDropDownViewResource(I)V

    .line 263
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->typesSpinner:Landroid/widget/Spinner;

    invoke-virtual {v1, v0}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 264
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->typesSpinner:Landroid/widget/Spinner;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->TAG_INI:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setTag(Ljava/lang/Object;)V

    .line 265
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->typesSpinner:Landroid/widget/Spinner;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->typesSpinnerListener:Landroid/widget/AdapterView$OnItemSelectedListener;

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 266
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->typesSpinner:Landroid/widget/Spinner;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setSelection(I)V

    return-void
.end method


# virtual methods
.method public onActionItemClicked(Landroid/view/ActionMode;Landroid/view/MenuItem;)Z
    .locals 2

    .line 450
    invoke-interface {p2}, Landroid/view/MenuItem;->getItemId()I

    move-result p1

    const p2, 0x7f090067

    const/4 v0, 0x0

    if-eq p1, p2, :cond_2

    const p2, 0x7f09006c

    if-eq p1, p2, :cond_0

    goto :goto_1

    .line 454
    :cond_0
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    const/4 p2, 0x0

    .line 455
    :goto_0
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->getCount()I

    move-result v1

    if-ge p2, v1, :cond_1

    .line 457
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {v1, p2}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->getItem(I)Llt/noframe/gpsfarmguide/models/MeasureListModel;

    move-result-object v1

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getId()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 p2, p2, 0x1

    goto :goto_0

    .line 459
    :cond_1
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->getCount()I

    move-result v1

    invoke-virtual {p2, v1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendFieldSelectAll(I)V

    .line 460
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {p2, p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->setSelectedFields(Ljava/util/ArrayList;)V

    .line 461
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {p1}, Landroid/widget/ArrayAdapter;->notifyDataSetChanged()V

    .line 462
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->getSelectedFields()Ljava/util/ArrayList;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->setSelectioncount(I)V

    goto :goto_1

    .line 468
    :cond_2
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->getSelectedFields()Ljava/util/ArrayList;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    if-lez p1, :cond_3

    .line 469
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->getSelectedFields()Ljava/util/ArrayList;

    move-result-object p2

    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result p2

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendFieldMultiDelete(I)V

    .line 470
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->getSelectedFields()Ljava/util/ArrayList;

    move-result-object p1

    invoke-static {p1}, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs;->deleteAreas(Ljava/util/List;)V

    :cond_3
    :goto_1
    return v0
.end method

.method public onActivityCreated(Landroid/os/Bundle;)V
    .locals 0

    .line 103
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onActivityCreated(Landroid/os/Bundle;)V

    .line 104
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->ini()V

    return-void
.end method

.method public onBackPressed()V
    .locals 3

    .line 426
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selection:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    const/4 v0, -0x1

    .line 427
    invoke-virtual {p0, v1, v0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->setSelection(ZI)V

    goto :goto_0

    .line 428
    :cond_0
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-static {}, Llt/noframe/gpsfarmguide/views/FragmentMap;->newInstance()Llt/noframe/gpsfarmguide/views/FragmentMap;

    move-result-object v2

    invoke-virtual {v0, v2, v1}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->setCurrentFragment(Landroidx/fragment/app/Fragment;I)V

    :goto_0
    return-void
.end method

.method public onCreateActionMode(Landroid/view/ActionMode;Landroid/view/Menu;)Z
    .locals 2

    .line 434
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    const v1, 0x7f0d0002

    .line 435
    invoke-virtual {v0, v1, p2}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    .line 436
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->Acmode:Landroid/view/ActionMode;

    const/4 p1, 0x1

    return p1
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2

    .line 82
    new-instance p3, Llt/noframe/gpsfarmguide/utils/RuntimePermissions;

    invoke-direct {p3}, Llt/noframe/gpsfarmguide/utils/RuntimePermissions;-><init>()V

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->runtimePermissions:Llt/noframe/gpsfarmguide/utils/RuntimePermissions;

    .line 83
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p3

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {p3, v0}, Llt/noframe/gpsfarmguide/Data;->getToolbarheight(Landroid/content/Context;)I

    move-result p3

    const/4 v0, 0x0

    invoke-virtual {p2, v0, p3, v0, v0}, Landroid/view/ViewGroup;->setPadding(IIII)V

    .line 84
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p3

    check-cast p3, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-virtual {p3}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object p3

    const v1, 0x7f1100b9

    invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p3, v1}, Landroidx/appcompat/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V

    .line 85
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p3

    check-cast p3, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-virtual {p3, p0}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->setOnBackPressed(Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentOnBackPressed;)V

    .line 86
    iput v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->scroll:I

    .line 87
    iput-boolean v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selection:Z

    .line 88
    new-instance p3, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {p3, v1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;-><init>(Landroid/content/Context;)V

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    .line 89
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p3

    invoke-virtual {p3}, Llt/noframe/gpsfarmguide/Data;->getPermissionsCallbacker()Llt/noframe/gpsfarmguide/PermissionsCallbacker;

    move-result-object p3

    new-instance v1, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$1;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$1;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V

    invoke-virtual {p3, v1}, Llt/noframe/gpsfarmguide/PermissionsCallbacker;->setOnRequestedPermission(Llt/noframe/gpsfarmguide/PermissionsCallbacker$OnRequestedPermission;)V

    const p3, 0x7f0c005e

    .line 97
    invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    return-object p1
.end method

.method public onDestroy()V
    .locals 1

    .line 116
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->Acmode:Landroid/view/ActionMode;

    if-eqz v0, :cond_0

    .line 117
    invoke-virtual {v0}, Landroid/view/ActionMode;->finish()V

    .line 118
    :cond_0
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroy()V

    return-void
.end method

.method public onDestroyActionMode(Landroid/view/ActionMode;)V
    .locals 1

    const/4 p1, 0x0

    .line 484
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->Acmode:Landroid/view/ActionMode;

    const/4 p1, 0x0

    const/4 v0, -0x1

    .line 485
    invoke-virtual {p0, p1, v0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->setSelection(ZI)V

    return-void
.end method

.method public onPrepareActionMode(Landroid/view/ActionMode;Landroid/view/Menu;)Z
    .locals 0

    .line 442
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->Acmode:Landroid/view/ActionMode;

    .line 443
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->getSelectedFields()Ljava/util/ArrayList;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->setSelectioncount(I)V

    const/4 p1, 0x1

    return p1
.end method

.method public onRequestPermissionsResult(I[Ljava/lang/String;[I)V
    .locals 1

    .line 124
    invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/Fragment;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V

    .line 125
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getPermissionsCallbacker()Llt/noframe/gpsfarmguide/PermissionsCallbacker;

    move-result-object v0

    invoke-virtual {v0, p1, p2, p3}, Llt/noframe/gpsfarmguide/PermissionsCallbacker;->onPermissionResult(I[Ljava/lang/String;[I)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 128
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->runtimePermissions:Llt/noframe/gpsfarmguide/utils/RuntimePermissions;

    invoke-virtual {v0, p1, p2, p3}, Llt/noframe/gpsfarmguide/utils/RuntimePermissions;->requestPermissionResponse(I[Ljava/lang/String;[I)V

    return-void
.end method

.method public onResume()V
    .locals 0

    .line 109
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onResume()V

    .line 110
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->createList()V

    return-void
.end method

.method public removeItem(I)V
    .locals 3

    const/4 v0, 0x0

    .line 281
    :goto_0
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measures:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    const/4 v2, -0x1

    if-ge v0, v1, :cond_1

    .line 282
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measures:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Llt/noframe/gpsfarmguide/models/MeasureListModel;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getId()I

    move-result v1

    if-ne v1, p1, :cond_0

    goto :goto_1

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, -0x1

    :goto_1
    if-le v0, v2, :cond_3

    .line 286
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->measures:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 287
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    if-eqz v0, :cond_2

    .line 288
    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->removeItem(I)V

    .line 289
    :cond_2
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->adapt:Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;

    if-eqz v0, :cond_3

    .line 290
    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->removeItem(I)V

    :cond_3
    return-void
.end method

.method public setSelection(ZI)V
    .locals 0

    .line 298
    iput-boolean p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selection:Z

    .line 299
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->createList()V

    .line 300
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    if-eqz p1, :cond_0

    .line 301
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    .line 302
    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 303
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {p2, p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->setSelectedFields(Ljava/util/ArrayList;)V

    .line 304
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selectionAdapter:Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->getSelectedFields()Ljava/util/ArrayList;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->setSelectioncount(I)V

    .line 306
    :cond_0
    iget-boolean p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->selection:Z

    if-eqz p1, :cond_1

    .line 307
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->listView:Lse/emilsjolander/stickylistheaders/StickyListHeadersListView;

    invoke-virtual {p1, p0}, Landroid/widget/FrameLayout;->startActionMode(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;

    goto :goto_0

    .line 309
    :cond_1
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->Acmode:Landroid/view/ActionMode;

    if-eqz p1, :cond_2

    invoke-virtual {p1}, Landroid/view/ActionMode;->finish()V

    :cond_2
    :goto_0
    return-void
.end method

.method public validateEditGroupVisibility()V
    .locals 2

    .line 396
    iget v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->groupId:I

    const v1, 0x7f0900f4

    if-nez v0, :cond_0

    .line 397
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 399
    :cond_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    return-void
.end method
